package com.streetsmart;
/**
 * 
 * @author bhavani sudha
 *
 */
import java.util.Vector;
/**
 * 
 * MyBusiness class is used for storing data collected from yelp search/google places apis
 *
 */
public class MyBusiness {
	private String name = "";
	private MyLocation businessLocation;
	private String url = "";  // can be google maps url  . May not be obtained using yelp api
	private String website = ""; // website of the business if nay
	private float ratings = 0;
	private Vector<String> category;
	private float appxDistanceFromSource = 0;
	private float distanceToIntendedDestination;
	private long timeToreachIntendedDestination;
	private MyBusiness source;
	private boolean isClosed = true;
	private String business_id = ""; // yelp id
	private String businessImageURL = ""; //yelp data again
	
	public MyBusiness(String name, MyLocation businessLocation, Vector<String> category, MyBusiness source, float appxDistanceFromSource){
		this.name = name;
		this.businessLocation = businessLocation;
		this.category = category;
		this.source = source;
		this.appxDistanceFromSource = appxDistanceFromSource;
	}
	
	
	public MyBusiness(String name, MyLocation businessLocation){
		this.name = name;
		this.businessLocation = businessLocation;
	}
	
	public MyBusiness(String name, String id, String imgUrl, float rating, MyLocation businessLocation, Vector<String> category, MyBusiness source, float appxDistanceFromSource){
		this.name = name;
		this.business_id = id;
		this.businessImageURL = imgUrl;
		this.ratings = rating;
		this.businessLocation = businessLocation;
		this.category = category;
		this.source = source;
		this.appxDistanceFromSource = appxDistanceFromSource;
	}
	
	public String getName() {
		return name;
	}
	
	public void setName(String name) {
		this.name = name;
	}
	
	public MyLocation getBusinessLocation() {
		return businessLocation;
	}
	
	public void setBusinessLocation(MyLocation businessLocation) {
		this.businessLocation = businessLocation;
	}
	
	public String getUrl() {
		return url;
	}
	
	public void setUrl(String url) {
		this.url = url;
	}
	
	public String getWebsite() {
		return website;
	}
	
	public void setWebsite(String website) {
		this.website = website;
	}
	
	public float getRatings() {
		return ratings;
	}
	
	public void setRatings(float ratings) {
		this.ratings = ratings;
	}
	
	public Vector<String> getCategory() {
		return category;
	}
	
	public void setCategory(Vector<String> category) {
		this.category = category;
	}
	
	public float getAppxDistanceFromSource() {
		return appxDistanceFromSource;
	}
	
	public void setAppxDistanceFromSource(float appxDistanceFromSource) {
		this.appxDistanceFromSource = appxDistanceFromSource;
	}
	
	public MyBusiness getSource() {
		return source;
	}
	
	public void setSource(MyBusiness source) {
		this.source = source;
	}
	
	public boolean isClosed() {
		return isClosed;
	}
	
	public void setClosed(boolean isClosed) {
		this.isClosed = isClosed;
	}

	/**
	 * @return the distanceToIntendedDestination
	 */
	public float getDistanceToIntendedDestination() {
		return distanceToIntendedDestination;
	}

	/**
	 * @param distanceToIntendedDestination the distanceToIntendedDestination to set
	 */
	public void setDistanceToIntendedDestination(float distanceToIntendedDestination) {
		this.distanceToIntendedDestination = distanceToIntendedDestination;
	}

	/**
	 * @return the timeToreachIntendedDestination
	 */
	public long getTimeToreachIntendedDestination() {
		return timeToreachIntendedDestination;
	}

	/**
	 * @param timeToreachIntendedDestination the timeToreachIntendedDestination to set
	 */
	public void setTimeToreachIntendedDestination(
			long timeToreachIntendedDestination) {
		this.timeToreachIntendedDestination = timeToreachIntendedDestination;
	}	

	/**
	 * @return the business_id
	 */
	public String getBusiness_id() {
		return business_id;
	}


	/**
	 * @param business_id the business_id to set
	 */
	public void setBusiness_id(String business_id) {
		this.business_id = business_id;
	}


	/**
	 * @return the businessImageURL
	 */
	public String getBusinessImageURL() {
		return businessImageURL;
	}


	/**
	 * @param businessImageURL the businessImageURL to set
	 */
	public void setBusinessImageURL(String businessImageURL) {
		this.businessImageURL = businessImageURL;
	}

}
